home *** CD-ROM | disk | FTP | other *** search
/ Network PC / Network PC.iso / amiga utilities / misc / commodities / screentab / installation-script < prev    next >
Encoding:
Text File  |  1997-11-20  |  29.6 KB  |  1,141 lines

  1. ; Installation-Script for ScreenTab V3.1c
  2. ; Author: Michael Link
  3. ; First creation : 28.10.94
  4. ; Last change    : 03.04.97
  5.  
  6. ; @s English string section
  7.  
  8. (set #bad-version
  9.     (cat "\n\nSorry, but ScreenTab requires\n"
  10.          "at least Kickstart 2.04"
  11.     )
  12. )
  13.  
  14. (set #help-dir
  15.     (cat "You must enter the name of the directory, in which\n"
  16.          "ScreenTab shall be installed.\n\n"
  17.          "If you want ScreenTab to be active everytime you\n"
  18.          "start the computer, enter the directory\n"
  19.          "\"SYS:WBStartup\", which is the default directory."
  20.     )
  21. )
  22.  
  23. (set #dir-request
  24.     (cat "Please enter the destination directory\n"
  25.          "for ScreenTab"
  26.     )
  27. )
  28.  
  29. (set #prefs-dir-request
  30.     (cat "Please enter the destination directory\n"
  31.          "for the ScreenTab-Preferences"
  32.     )
  33. )
  34.  
  35. (set #which-scrkey
  36.     (cat "\n\nWith which key combination shall the\n"
  37.          "screens be switched ?\n\n"
  38.          "(Don't use any of the SHIFT-Keys, because\n"
  39.          "ScreenTab needs them for back-switching !)"
  40.     )
  41. )
  42.  
  43. (set #which-winkey
  44.     (cat "\n\nWith which key combination shall the\n"
  45.          "windows be switched ?\n\n"
  46.          "(Don't use any of the SHIFT-Keys, because\n"
  47.          "ScreenTab needs them for back-switching !)"
  48.     )
  49. )
  50.  
  51. (set #msg-imagedir
  52.     (cat "\n\nThe destination directory already contains\n"
  53.          "a ScreenTab executable which will be updated.\n"
  54.          "All icon settings will be preserved, but you\n"
  55.          "should create a new tool-type IMAGEDIR after\n"
  56.          "the installation which points to the directory\n"
  57.          "containing your images."
  58.     )
  59. )
  60.  
  61. (set #write-tooltypes
  62.     "\nWriting Tool-Types ..."
  63. )
  64.  
  65. (set #old-prefs-file
  66.     (cat "\n\nThere's an older preferences file installed\n"
  67.          "on your system. If you want to use these\n"
  68.          "preferences, they must be converted.\n\n"
  69.          "Do you want to do this ?"
  70.     )
  71. )
  72.  
  73. (set #ask-plugins "\nWhich PlugIn-Modules do you want to install ?\n")
  74.  
  75. (set #ask-plugins-help
  76.     (cat "PlugIn-Modules add new functionality to the Start-Button."
  77.          "They can i. e. control commodities, eject changeable media "
  78.          "or close windows.\n\n"
  79.          "Please read the documentation for details."
  80.     )
  81. )
  82.  
  83. (set #ask-plugin-dir "\nChoose a directory for the modules ...\n")
  84.  
  85. (set #ask-brushes
  86.     (cat "\n\nDo you want to install the\n"
  87.          "included image-files (MWB-Style) ?"
  88.     )
  89. )
  90.  
  91. (set #ask-brushes-dir
  92.     (cat "In which directory shall I create\n"
  93.          "the ScreenTab-Images-Directory ?"
  94.     )
  95. )
  96.  
  97. (set #extracting-brushes "Extracting image files ...")
  98.  
  99. (set #ask-brushes-message
  100.     (cat "\n\n\nH I N T"
  101.          "\n\nThe easiest way to chose an image for an\n"
  102.          "application or a startup node is to drag the icon\n"
  103.          "of the image onto the image path gadget !"
  104.     )
  105. )
  106.  
  107. (set #ask-catalogs
  108.     "\nWhich language catalogs shall be installed ?\n"
  109. )
  110.  
  111. (set #ask-scrnotify
  112.     (cat "\n\nIf available, ScreenTab uses\n"
  113.          "the ScreenNotify-Library to react on changes\n"
  114.          "of the Workbench resolution.\n\n"
  115.          "Do you want to install this library ?"
  116.     )
  117. )
  118.  
  119. (set #ask-scrnotify-help
  120.     (cat "The usage of this library is optional. "
  121.          "But if the Workbench resolution is changed "
  122.          "without this library installed, it can "
  123.          "cause system instability or crashes.\n\n"
  124.          "If you don't want to use an installed "
  125.          "ScreenNotify-Library, set the tool-type "
  126.          "USESCREENNOTIFY to NO."
  127.     )
  128. )
  129.  
  130. (set #ask-wbstarth
  131.     (cat "\n\nScreenTab uses the WBStart-Handler by\n"
  132.          "Stefan Becker to emulate a program start\n"
  133.          "via Workbench.\n\n"
  134.          "Do you want to install the handler now ?"
  135.     )
  136. )
  137.  
  138. (set #ask-wbstartl
  139.     (cat "\n\nScreenTab uses the WBStart-Library by\n"
  140.          "Stefan Becker to emulate a program start\n"
  141.          "via Workbench.\n\n"
  142.          "Do you want to install the library now ?"
  143.     )
  144. )
  145.  
  146. (set #copy-screentab
  147.     "\n\nCopying ScreenTab ..."
  148. )
  149.  
  150. (set #copy-screentabprefs
  151.     "\n\nCopying ScreenTabPrefs ..."
  152. )
  153.  
  154. (set #copy-plugin
  155.     "\n\nCopying PlugIn-Module ..."
  156. )
  157.  
  158. (set #copy-brushes
  159.     "\n\nCopying Image-Files ..."
  160. )
  161.  
  162. (set #copy-scrnotify
  163.     "\n\nCopying ScreenNotify-Library ..."
  164. )
  165.  
  166. (set #copy-wbstarth
  167.     "\n\nCopying WBStart-Handler ..."
  168. )
  169.  
  170. (set #copy-wbstartl
  171.     "\n\nCopying WBStart-Libraries ..."
  172. )
  173.  
  174. (set #copy-catalogs
  175.     "\n\nCopying language catalogs ..."
  176. )
  177.  
  178. (set #catalog-choice-default 0)
  179.  
  180. (set #lang-german   "Deutsch" )
  181. (set #lang-french   "Français" )
  182. (set #lang-italian  "Italiano" )
  183.  
  184. (set #error-conversion
  185.     "\n\nError during conversion !!!"
  186. )
  187.  
  188. (set #error-prefs
  189.     (cat "\n\nAn error occured during checking of the version\n"
  190.          "of the preferences file. Probably this happened\n"
  191.          "because you are using a file of the first ScreenTab\n"
  192.          "version (1.13).\n\n"
  193.          "This version isn't supported anymore !"
  194.     )
  195. )
  196. ; @e
  197.  
  198. ; @s German string section
  199.  
  200. (if (= @language "deutsch")
  201. (
  202.  
  203. (set #bad-version
  204.     (cat "\n\nSorry, aber ScreenTab läuft erst ab\n"
  205.          "Kickstart 2.04."
  206.     )
  207. )
  208.  
  209. (set #help-dir
  210.     (cat "An dieser Stelle müssen Sie angeben, in welchem\n"
  211.       "Verzeichnis ScreenTab installiert werden soll.\n\n"
  212.       "Wenn ScreenTab gleich nach dem Start des Computers\n"
  213.       "aktiv sein soll, sollten Sie als Zielverzeichnis\n"
  214.       "\"SYS:WBStartup\" angeben."
  215.     )
  216. )
  217.  
  218. (set #dir-request
  219.     (cat "Geben Sie jetzt das Verzeichnis an,\n"
  220.          "in dem ScreenTab installiert werden soll."
  221.     )
  222. )
  223.  
  224. (set #prefs-dir-request
  225.     (cat "Geben Sie jetzt das Verzeichnis an, in das das\n"
  226.          "Voreinstellungsprogramm kopiert werden soll."
  227.     )
  228. )
  229.  
  230. (set #which-scrkey
  231.     (cat "\n\nMit welcher Tastenkombination sollen die\n"
  232.          "Screens umgeschaltet werden ?\n\n"
  233.          "(Bitte geben Sie hier keine SHIFT-Taste an, da\n"
  234.          "diese für das Zurückblättern gebraucht werden !)"
  235.     )
  236. )
  237.  
  238. (set #which-winkey
  239.     (cat "\n\nMit welcher Tastenkombination sollen die\n"
  240.          "Fenster umgeschaltet werden ?\n\n"
  241.          "(Bitte geben Sie hier keine SHIFT-Taste an, da\n"
  242.          "diese für das Zurückblättern gebraucht werden !)"
  243.     )
  244. )    
  245.  
  246. (set #msg-imagedir
  247.     (cat "\n\nDas Zielverzeichnis enthält bereits eine\n"
  248.          "ScreenTab-Version, die hiermit ersetzt wird.\n"
  249.          "Alle Einstellungen werden erhalten, allerdings\n"
  250.          "sollten Sie einen neuen Tool-Type IMAGEDIR anlegen,\n"
  251.          "der auf das Verzeichnis zeigt, das die Images enthält."
  252.     )
  253. )
  254.  
  255. (set #write-tooltypes
  256.     "\nSchreibe Tool-Types ..."
  257. )
  258.  
  259. (set #old-prefs-file
  260.     (cat "\n\nEine ältere Voreinstellungsdatei ist auf\n"
  261.          "ihrem System installiert. Um diese Einstellungen\n"
  262.          "mit der neuen Version nutzen zu können, muß\n"
  263.          "eine Konvertierung vorgenommen werden.\n\n"
  264.          "Wollen Sie das ?"
  265.     )
  266. )   
  267.  
  268. (set #ask-plugins "\nWelche PlugIn-Module wollen Sie installieren ?\n")
  269.  
  270. (set #ask-plugins-help
  271.     (cat "PlugIn-Module erweitern die Funktionalität des "
  272.          "Start-Buttons. Mit ihnen können beispielsweise "
  273.          "die Commodities kontrolliert, Wechselmedien "
  274.          "ausgeworfen oder Fenster geschlossen werden.\n\n"
  275.          "Bitte lesen Sie dazu die Dokumentation."
  276.     )
  277. )
  278.  
  279. (set #ask-plugin-dir
  280.     "\nBitte wählen Sie ein Verzeichnis für die PlugIn-Module ...\n"
  281. )
  282.  
  283. (set #ask-brushes
  284.     (cat "\n\nWollen Sie die mitgelieferten Image-Dateien\n"
  285.          "installieren (MWB-Stil) ?"
  286.     )
  287. )
  288.  
  289. (set #ask-brushes-dir
  290.     (cat "In welches Verzeichnis sollen die Image-Dateien\n"
  291.          "kopiert werden ? Ein Verzeichnis mit dem Namen\n"
  292.          "'ScreenTab-Images' wird dort angelegt"
  293.     )
  294. )
  295.  
  296. (set #extracting-brushes "Entpacke Image-Dateien ...")
  297.  
  298. (set #ask-brushes-message
  299.     (cat "\n\n\nH I N W E I S"
  300.          "\n\nAm einfachsten ordnen Sie einer Anwendung\n"
  301.          "oder einem Startup-Eintrag ein Image zu, indem\n"
  302.          "Sie das Icon des Image auf das Eingabefeld für\n"
  303.          "den Image-Pfad ziehen."
  304.     )
  305. )
  306.  
  307. (set #ask-catalogs
  308.     "\nWelche Sprach-Kataloge sollen installiert werden ?\n"
  309. )
  310.  
  311. (set #ask-scrnotify
  312.     (cat "\n\nScreenTab benutzt, falls vorhanden,\n"
  313.          "die ScreenNotify-Library, um auf Wechsel der\n"
  314.          "Workbench-Auflösung reagieren zu können.\n\n"
  315.          "Wollen Sie diese Library installieren ?"
  316.     )
  317. )
  318.  
  319. (set #ask-scrnotify-help
  320.     (cat "Die Benutzung dieser Library ist optional. "
  321.          "Allerdings kann es zu Fehlern oder Abstürzen "
  322.          "kommen, wenn die Workbench-Auflösung ohne "
  323.          "installierte Library gewechselt wird.\n\n"
  324.          "Wenn Sie auf die ScreenNotify-Library "
  325.          "verzichten wollen, können Sie dies gezielt "
  326.          "mit dem Tool-Type USESCREENNOTIFY unterbinden, "
  327.          "indem Sie ihn auf NO setzen."
  328.     )
  329. )
  330.  
  331. (set #ask-wbstarth
  332.     (cat "\n\nScreenTab braucht den WBStart-Handler von\n"
  333.          "Stefan Becker, um einen Programmstart über die\n "
  334.          "Workbench zu emulieren.\n\n"
  335.          "Wollen Sie den Handler jetzt installieren ?"
  336.     )
  337. )
  338.  
  339. (set #ask-wbstartl
  340.     (cat "\n\nScreenTab braucht die WBStart-Library von\n"
  341.          "Stefan Becker, um einen Programmstart über die\n"
  342.          "Workbench zu emulieren.\n\n"
  343.          "Wollen Sie die Library jetzt installieren ?\n"
  344.     )
  345. )
  346.  
  347. (set #copy-screentab
  348.     "\n\nKopiere ScreenTab ..."
  349. )
  350.  
  351. (set #copy-screentabprefs
  352.     "\n\nKopiere ScreenTabPrefs ..."
  353. )
  354.  
  355. (set #copy-plugin
  356.     "\n\nKopiere PlugIn-Module ..."
  357. )
  358.  
  359. (set #copy-brushes
  360.     "\n\nKopiere Image-Dateien ..."
  361. )
  362.  
  363. (set #copy-scrnotify
  364.     "\n\nKopiere ScreenNotify-Library ..."
  365. )
  366.  
  367. (set #copy-wbstarth
  368.     "\n\nKopiere WBStart-Handler ..."
  369. )
  370.  
  371. (set #copy-wbstartl
  372.     "\n\nKopiere WBStart-Libraries ..."
  373. )
  374.  
  375. (set #copy-catalogs
  376.     "\n\nKopiere Sprachkataloge ..."
  377. )
  378.  
  379. (set #catalog-choice-default 1)
  380.  
  381. (set #error-conversion
  382.     "\n\nFehler beim Konvertieren !!!"
  383. )
  384.  
  385. (set #error-prefs
  386.     (cat "\n\nBeim der Versions-Überprüfung der Voreinstellungs-\n"
  387.          "datei trat ein Fehler auf. Wahrscheinlich benutzen\n"
  388.          "Sie noch eine Datei der ersten ScreenTab-Version (1.13).\n\n"
  389.          "Diese wird jedoch nicht mehr unterstützt !"
  390.     )
  391. )
  392.  
  393. )
  394. ) ; endif
  395.  
  396. ; @e
  397.  
  398. ; @s Français string section
  399.  
  400. (if (= @language "français")
  401. (
  402.  
  403. (set #bad-version
  404.     (cat "\n\nDésolé, mais ScreenTab requiert\n"
  405.          "au moins le Kickstart 2.04"
  406.     )
  407. )
  408.  
  409. (set #help-dir
  410.     (cat "Vous devez entrer le nom du répertoire, dans lequel\n"
  411.          "ScreenTab doit être installé.\n\n"
  412.          "Si vous voulez activer ScreenTab à chaque démarrage de\n"
  413.          "l'ordinateur, entrez le répertoire\n"
  414.          "\"SYS:WBStartup\", lequel est un répertoire par défaut."
  415.     )
  416. )
  417.  
  418. (set #dir-request
  419.     (cat "Entrez le répertoire destination\n"
  420.          "pour ScreenTab"
  421.     )
  422. )
  423.  
  424. (set #prefs-dir-request
  425.     (cat "Entrez le répertoire destination\n"
  426.          "pour les Préférences-ScreenTab"
  427.     )
  428. )
  429.  
  430. (set #which-scrkey
  431.     (cat "\n\nAvec quelle combinaison de touche les\n"
  432.          "écrans doivent être switchés ?\n\n"
  433.          "(N'utilisez pas les touches-SHIFT, car\n"
  434.          "ScreenTab en a besoin pour switcher en arrière !)"
  435.     )
  436. )
  437.  
  438. (set #which-winkey
  439.     (cat "\n\nAvec quelle combinaison de touche les\n"
  440.          "fenêtres doivent être switchés ?\n\n"
  441.          "(N'utilisez pas les touches-SHIFT, car\n"
  442.          "ScreenTab en a besoin pour switcher en arrière !)"
  443.     )
  444. )
  445.  
  446. (set #msg-imagedir
  447.     (cat "\n\nLe répertoire destination contient déjà\n"
  448.          "l'éxecutable ScreenTab lequel sera mis à jour.\n"
  449.          "Les réglages des icônes seront préservées, mais vous\n"
  450.          "devrez créer un nouveau tool-type IMAGEDIR après\n"
  451.          "l'installation contenant le chemin du répertoire\n"
  452.          "vers vos images."
  453.     )
  454. )
  455.  
  456. (set #write-tooltypes
  457.     "\nEcriture des Tool-Types ..."
  458. )
  459.  
  460. (set #old-prefs-file
  461.     (cat "\n\nIl ya à un déjà un ancien fichier préférences installé\n"
  462.          "sur votre système. Si vous voulez les utiliser, ces\n"
  463.          "préférences doivent être converties.\n\n"
  464.          "Voulez-vous faire ça ?"
  465.     )
  466. )
  467.  
  468. (set #ask-plugins "\nQuels Modules-PlugIn voulez-vous installer ?\n")
  469.  
  470. (set #ask-plugins-help
  471.     (cat "Les Modules-PlugIn ajoutent de nouvelles fonctions au Bouton-Démarrage."
  472.          "Ils peuvent controller les commoditées, éjecter un média, fermer"
  473.          "des fenêtres...\n\n"
  474.          "Lisez la documentation pour plus de détails."
  475.     )
  476. )
  477.  
  478. (set #ask-plugin-dir "\nChoisissez un répertoire pour les modules ...\n")
  479.  
  480. (set #ask-brushes
  481.     (cat "\n\nVoulez-vous installer les\n"
  482.          "fichiers-images inclus (Style-MWB) ?"
  483.     )
  484. )
  485.  
  486. (set #ask-brushes-dir
  487.     (cat "Dans quel répertoire dois-je créer\n"
  488.          "le répertoire Images-ScreenTab ?"
  489.     )
  490. )
  491.  
  492. (set #extracting-brushes "Extraction fichiers images...")
  493.  
  494. (set #ask-brushes-message
  495.     (cat "\n\n\nH I N T"
  496.          "\n\nLa manière la plus facile de choisir une image pour une\n"
  497.          "application ou un noeud de démarrage est d'amener l'icône\n"
  498.          "de l'image sur le gadget du chemin image !"
  499.     )
  500. )
  501.  
  502. (set #ask-catalogs
  503.     "\nQuel language dois être installé ?\n"
  504. )
  505.  
  506. (set #ask-scrnotify
  507.     (cat "\n\nSi disponible, ScreenTab utilise\n"
  508.          "la ScreenNotify-Library pour réagir sur les changements\n"
  509.          "de résolution du Workbench.\n\n"
  510.          "Voulez-vous installer cette library ?"
  511.     )
  512. )
  513.  
  514. (set #ask-scrnotify-help
  515.     (cat "L'usage de cette library est optionnelle. "
  516.          "Mais si la résolution du Workbench est changée "
  517.          "sans que cette library soit installée, cela peut"
  518.          "causer une instabilité du système ou un crash.\n\n"
  519.          "Si vous ne voulez pas utiliser la "
  520.          "ScreenNotify-Library, réglez le tool-type "
  521.          "USESCREENNOTIFY à NO."
  522.     )
  523. )
  524.  
  525. (set #ask-wbstarth
  526.     (cat "\n\nScreenTab utilise le WBStart-Handler de\n"
  527.          "Stefan Becker pour émuler le démarrage d'un programme\n"
  528.          "via Workbench.\n\n"
  529.          "Voulez-vous installer ce handler maintenant ?"
  530.     )
  531. )
  532.  
  533. (set #ask-wbstartl
  534.     (cat "\n\nScreenTab utilise la WBStart-Library de\n"
  535.          "Stefan Becker pour émuler le démarrage d'un programme\n"
  536.          "via Workbench.\n\n"
  537.          "Voulez-vous installer cette library maintenant ?"
  538.     )
  539. )
  540.  
  541. (set #copy-screentab
  542.     "\n\nCopie ScreenTab..."
  543. )
  544.  
  545. (set #copy-screentabprefs
  546.     "\n\nCopie ScreenTabPrefs..."
  547. )
  548.  
  549. (set #copy-plugin
  550.     "\n\nCopie Module-PlugIn..."
  551. )
  552.  
  553. (set #copy-brushes
  554.     "\n\nCopie Fichiers-Images..."
  555. )
  556.  
  557. (set #copy-scrnotify
  558.     "\n\nCopie ScreenNotify-Library..."
  559. )
  560.  
  561. (set #copy-wbstarth
  562.     "\n\nCopie WBStart-Handler..."
  563. )
  564.  
  565. (set #copy-wbstartl
  566.     "\n\nCopie WBStart-Libraries..."
  567. )
  568.  
  569. (set #copy-catalogs
  570.     "\n\nCopie catalogues des langues..."
  571. )
  572.  
  573. (set #catalog-choice-default 2)
  574.  
  575. (set #lang-german   "Deutsch" )
  576. (set #lang-italian  "Italiano" )
  577. (set #lang-french   "Français" )
  578.  
  579. (set #error-conversion
  580.     "\n\nErreur durant la conversion !!!"
  581. )
  582.  
  583. (set #error-prefs
  584.     (cat "\n\nUne erreur est survenue durant la vérification de la version\n"
  585.          "du fichier préférences. Ceci est probablement dû\n"
  586.          "à votre utilisation d'un fichier de la première version de\n"
  587.          "ScreenTab version (1.13).\n\n"
  588.          "Cette version n'est plus supportée du tout !"
  589.     )
  590. )
  591.  
  592. )
  593. ) ; endif
  594. ; @e
  595.  
  596. ; @s Italian string section
  597.  
  598. (if (= @language "italiano")
  599. (
  600.  
  601. (set #bad-version
  602.     (cat "\n\nMi spiace, ma ScreenTab ha bisogno almeno\n"
  603.          "della Kickstart 2.04."
  604.     )
  605. )
  606.  
  607. (set #help-dir
  608.     (cat "Dovete scrivere il nome della directory, dove\n"
  609.       "ScreenTab deve essere installato.\n\n"
  610.       "Se volete che ScreenTab sia attivo ogni qualvolta avviate\n"
  611.       "il Computer, ponete la directory \"SYS:WBStartup\"\n"
  612.       "che è la directory standard."
  613.     )
  614. )
  615.  
  616. (set #dir-request
  617.     (cat "Per favore ponete la directory di destinazione,\n"
  618.          "dove volete installare ScreenTab."
  619.     )
  620. )
  621.  
  622. (set #prefs-dir-request
  623.     (cat "Per favore ponete la directory di destinazione,\n"
  624.          "dove volete installare ScreenTab-Prefs."
  625.     )
  626. )
  627.  
  628. (set #which-scrkey
  629.     (cat "\n\nCon quale combinazione tasti dovranno essere\n"
  630.          "commutati gli schermi ?\n\n"
  631.          "(Non usate uno dei tasti SHIFT, perchè ScreenTab\n"
  632.          "necessita di essi per commutare all'indietro !)"
  633.     )
  634. )
  635.  
  636. (set #which-winkey
  637.     (cat "\n\nCon quale combinazione tasti dovranno essere\n"
  638.          "commutate le finestre ?\n\n"
  639.          "(Non usate uno dei tasti SHIFT, perchè ScreenTab\n"
  640.          "necessita di essi per commutare all'indietro !)"
  641.     )
  642. )
  643.  
  644. (set #msg-imagedir
  645.     (cat "\n\nLa directory di destinazione già contiene\n"
  646.          "ScreenTab che sarà aggiornato.\n"
  647.          "Tutte le configurazioni nell'icona saranno preservate,\n"
  648.          "dovrai creare un nuovo tool-type IMAGEDIR dopo\n"
  649.          "l'installazione che descriva il percorso della directory\n"
  650.          "contenente le vostre immagini."
  651.     )
  652. )
  653.  
  654. (set #write-tooltypes
  655.     "\nSto scrivendo i Tool-Type ..."
  656. )
  657.  
  658. (set #old-prefs-file
  659.     (cat "\n\nE' presente un file preferenze precedente\n"
  660.          "nel vostro sistema. Se volete usare queste\n"
  661.          "preferenze, deve essere convertito.\n\n"
  662.          "Lo volete ?"
  663.     )
  664. )
  665.  
  666. (set #ask-plugins "\nQuali Moduli volete installare ?\n")
  667.  
  668. (set #ask-plugins-help
  669.     (cat "I Moduli PlugIn aggiungono nuove funzionalità al pulsante Start."
  670.          "Possono ad esempio controllare commodities, espellere media "
  671.          "modificabili o chiudere finestre.\n\n"
  672.          "Per favore leggete la documentazione per i dettagli."
  673.     )
  674. )
  675.  
  676. (set #ask-plugin-dir
  677.     "\nScegliete una directory per i moduli ...\n"
  678. )
  679.  
  680. (set #ask-brushes
  681.     (cat "\n\nVolete installare le immagini\n"
  682.          "fornite (Stile-MWB) ?"
  683.     )
  684. )
  685.  
  686. (set #ask-brushes-dir
  687.     (cat "In quale directory dovrò creare\n"
  688.          "il cassetto ScreenTab-Images ?"
  689.     )
  690. )
  691.  
  692. (set #extracting-brushes "Sto estraendo i file immagine ...")
  693.  
  694. (set #ask-brushes-message
  695.     (cat "\n\n\nC O N S I G L I O"
  696.          "\n\nIl modo più semplice per scegliere una immagine per una\n"
  697.          "applicazione o un nodo di startup è di trascinare l'icona\n"
  698.          "dell'immagine dentro il percorso del gadget immagine !"
  699.     )
  700. )
  701.  
  702. (set #ask-catalogs
  703.     "\nQuale lingua devo installare ?\n"
  704. )
  705.  
  706. (set #ask-scrnotify
  707.     (cat "\n\nSe disponibile, ScreenTab usa\n"
  708.          "la ScreenNotify-Library che interviene sui cambiamenti\n"
  709.          "di risoluzione del Workbench.\n\n"
  710.          "Volete installare questa libreria ?"
  711.     )
  712. )
  713.  
  714. (set #ask-scrnotify-help
  715.     (cat "L'utilizzo di questa libreria è facoltativo. "
  716.          "Ma se la risoluzione del Workbench è modificata "
  717.          "senza che questa libreria sia installata, può "
  718.          "causare instabilità al sistema o crash.\n\n"
  719.          "Se non volete usare la ScreenNotify-Library, "
  720.          " ponete il tool-type "
  721.          "USESCREENNOTIFY a NO."
  722.     )
  723. )
  724.  
  725. (set #ask-wbstarth
  726.     (cat "\n\nScreenTab usa WBStart-Handler di\n"
  727.          "Stefan Becker per emulare un avvio di programma\n"
  728.          "via Workbench.\n\n"
  729.          "Volete installare l'handler adesso ?"
  730.     )
  731. )
  732.  
  733. (set #ask-wbstartl
  734.     (cat "\n\nScreenTab usa WBStart-Library di\n"
  735.          "Stefan Becker per emulare un avvio di programma\n"
  736.          "via Workbench.\n\n"
  737.          "Volete installare la libreria adesso ?"
  738.     )
  739. )
  740.  
  741. (set #copy-screentab
  742.     "\n\nSto copiando ScreenTab ..."
  743. )
  744.  
  745. (set #copy-screentabprefs
  746.     "\n\nSto copiando ScreenTabPrefs ..."
  747. )
  748.  
  749. (set #copy-plugin
  750.     "\n\nSto copiando i Moduli PlugIn ..."
  751. )
  752.  
  753. (set #copy-brushes
  754.     "\n\nSto copiando i file Immagine ..."
  755. )
  756.  
  757. (set #copy-scrnotify
  758.     "\n\nSto copiando la ScreenNotify-Library ..."
  759. )
  760.  
  761. (set #copy-wbstarth
  762.     "\n\nSto copiando la WBStart-Handler ..."
  763. )
  764.  
  765. (set #copy-wbstartl
  766.     "\n\nSto copiando la WBStart-Library ..."
  767. )
  768.  
  769. (set #copy-catalogs
  770.     "\n\nSto copiando i cataloghi ..."
  771. )
  772.  
  773. (set #catalog-choice-default 4)
  774.  
  775. (set #error-conversion
  776.     "\n\nErrore durante la conversione !!!"
  777. )
  778.  
  779. (set #error-prefs
  780.     (cat "\n\nUn errore è occorso durante il controllo della versione\n"
  781.          "del file preferenze. Probabilmente questo è avvenuto perchè\n"
  782.          "state usando un file di una versione antecedente ScreenTab\n"
  783.          "versione (1.13).\n\n"
  784.          "Questa versione non è più supportata !"
  785.     )
  786. )
  787.  
  788. )
  789. ) ; endif
  790.  
  791. ; @e
  792.  
  793. ; @s Different version numbers
  794.  
  795. (set intuition_vernum (getversion "intuition.library" (resident)))
  796. (set intuition_ver    (shiftright intuition_vernum 16))
  797. (set locale_vernum    (getversion "locale.library" (resident)))
  798. (set locale_ver       (shiftright locale_vernum 16))
  799. (set scrntfy_vernum   (getversion "LIBS:screennotify.library"))
  800. (set scrntfy_ver      (shiftright scrntfy_vernum 16))
  801. (set wbstarth_vernum  (getversion "L:WBStart-Handler"))
  802. (set wbstarth_ver     (shiftright wbstarth_vernum 16))
  803. (set wbstartl_vernum  (getversion "LIBS:wbstart.library"))
  804. (set wbstartl_ver     (shiftright wbstartl_vernum 16))
  805.  
  806. ; @e
  807.  
  808. ; @s check OS version and CPU
  809. (if (< intuition_ver 37)
  810.     (abort #bad-version)
  811. )
  812.  
  813. (set #cpu020 (not (patmatch "68000|68010" (database "cpu"))))
  814. ; @e
  815.  
  816. ; @s Ask for destination directory
  817.  
  818. (set DIR (askdir (prompt #dir-request)
  819.                  (help #help-dir)
  820.                  (default "SYS:WBStartup")
  821.          )
  822. )
  823.  
  824. (set PREFSDIR (askdir (prompt #prefs-dir-request)
  825.                       (help @askdir-help)
  826.                       (default "SYS:Prefs")
  827.               )
  828. )
  829.  
  830. (if (askbool (prompt #ask-brushes)
  831.              (help)
  832.              (default 1)
  833.     )
  834.     (
  835.         (set #extract-images 1)
  836.  
  837.         (set #brush-dir (askdir (prompt #ask-brushes-dir)
  838.                                 (help @askdir-help)
  839.                                 (default "SYS:Prefs")
  840.                         )
  841.         )
  842.  
  843.         (set #brush-dir (tackon #brush-dir "ScreenTab-Images"))
  844.     )
  845. )
  846.  
  847. ; @e
  848.  
  849. ; @s Tool-Types and copy main program
  850.  
  851. (set @default-dest DIR)
  852.  
  853. (set #oldversion-exists (exists (tackon DIR "ScreenTab") (noreq) ) )
  854.  
  855. ; we must check if an old version is still in this directory
  856. (if (= #oldversion-exists 0)
  857.     (
  858.         (set SWITCHKEY (askstring (prompt #which-scrkey)
  859.                                   (help @askstring-help)
  860.                                   (default "LCommand Tab")
  861.                        )
  862.         )  
  863.  
  864.         (set WINSWITCHKEY (askstring (prompt #which-winkey)
  865.                                   (help @askstring-help)
  866.                                   (default "LCommand `")
  867.                           )
  868.         )
  869.  
  870.         (tooltype (prompt #write-tooltypes)
  871.                   (help)
  872.                   (if (= #cpu020 0) (dest "ScreenTab") (dest "ScreenTab.020"))
  873.                   (settooltype "SWITCHKEY" SWITCHKEY)
  874.                   (settooltype "WINSWITCHKEY" WINSWITCHKEY)
  875.                   (if (= #extract-images 1) (settooltype "IMAGEDIR" #brush-dir) )
  876.         )
  877.     )
  878.     (        
  879.         (message #msg-imagedir)
  880.     )
  881. )
  882.  
  883. (copyfiles (prompt #copy-screentab)
  884.            (help @copyfiles-help)
  885.            (if (= #cpu020 0) (source "ScreenTab") (source "ScreenTab.020"))
  886.            (newname "ScreenTab")
  887.            (dest DIR)
  888.            (if (= #oldversion-exists 0) (infos) )
  889. )
  890.  
  891. (set @default-dest PREFSDIR)
  892.  
  893. (copyfiles (prompt #copy-screentabprefs)
  894.            (help @copyfiles-help)
  895.            (source "Prefs/ScreenTabPrefs")
  896.            (dest PREFSDIR)
  897.            (infos)
  898. )
  899.  
  900. ; @e
  901.  
  902. ; @s Checking for preferences file and need for conversion
  903.  
  904. (if (exists "ENVARC:ScreenTab.prefs")
  905.     (
  906.         (set #check-prefsversion (run "HandleScrTab PREFSVERSION" (safe) ) )
  907.  
  908.         (if (> #check-prefsversion 1)
  909.             (message #error-prefs)
  910.         )
  911.  
  912.         (if (= #check-prefsversion 1)
  913.             (if (askbool (prompt #old-prefs-file)
  914.                          (help)
  915.                          (default 1)
  916.                 )
  917.                 (if (> (run "HandleScrTab CONVERTPREFS" (safe) ) 0)
  918.                     (copyfiles (prompt)
  919.                                (help)
  920.                                (source "T:SCRT.TMP")
  921.                                (dest "ENVARC:")
  922.                                (newname "ScreenTab.prefs")
  923.                     )
  924.                     (message #error-conversion)
  925.                 )
  926.             )
  927.         )
  928.     )
  929.     (copyfiles (prompt #copy-preferences)
  930.                (help)
  931.                (source "ScreenTab.prefs")
  932.                (dest "ENVARC:")
  933.     )
  934. )
  935.  
  936. ; @e
  937.  
  938. ; @s Installation of the PlugIn-Modules
  939.  
  940. (set #plugin-choice (askoptions (prompt #ask-plugins)
  941.                                 (help #ask-plugins-help)
  942.                                 (choices "Commodities"
  943.                                          "Windows"
  944.                                          "SysTools"
  945.                                          "PasteClip")
  946.                     )
  947. )
  948.  
  949. (if #plugin-choice
  950.     (
  951.         (set #plugin-dir (askdir (prompt #ask-plugin-dir)
  952.                                  (help @askfile-help)
  953.                                  (default "LIBS:plugins")
  954.                          )
  955.         )
  956.  
  957.         (set n 0)
  958.  
  959.         (while (set #plugin (select n "commodities.plugin"
  960.                                       "windows.plugin"
  961.                                       "systools.plugin"
  962.                                       "pasteclip.plugin"
  963.                                       ""
  964.                             )
  965.                )
  966.                (if (IN #plugin-choice n)
  967.                    (
  968.                        (set #plugin-source (tackon "PlugIns" #plugin))
  969.  
  970.                        (copylib (prompt #copy-plugin)
  971.                                 (help)
  972.                                 (source #plugin-source)
  973.                                 (dest #plugin-dir)
  974.                        )
  975.                    )
  976.                )
  977.  
  978.                (set n (+ n 1))
  979.         )
  980.     )
  981. )
  982.  
  983. ; @e
  984.  
  985. ; @s Extracting of the images
  986. (if (= #extract-images 1)
  987.     (
  988.         (makedir #brush-dir
  989.                  (prompt)
  990.                  (help @makedir-help)
  991.                  (infos)
  992.         )
  993.  
  994.         (set #exelha (cat "lha e Images.lha \""
  995.                           #brush-dir "/\""
  996.                      )
  997.         )
  998.  
  999.         (working #extracting-brushes)
  1000.  
  1001.         (run #exelha)
  1002.  
  1003.         (message #ask-brushes-message)
  1004.     )
  1005. )
  1006.  
  1007. ; @e
  1008.  
  1009. ; @s Installation of the ScreenNotify-Library
  1010.  
  1011. (if (= scrntfy_ver 0)
  1012.     (if (askbool (prompt #ask-scrnotify)
  1013.                  (help   #ask-scrnotify-help)
  1014.                  (default 1)
  1015.         )
  1016.         (copylib (prompt #copy-scrnotify)
  1017.                  (help)
  1018.                  (source "Libs/screennotify.library")
  1019.                  (dest   "LIBS:")
  1020.                  (confirm)
  1021.         )
  1022.     )
  1023. )
  1024.  
  1025. ; @e
  1026.  
  1027. ; @s Installation of the WBStart-Library or -Handler
  1028.  
  1029. ; we can only use WBStart-Library with OS 3.x
  1030. (if (>= intuition_ver 39)
  1031.     (if (= wbstartl_ver 0)
  1032.         (if (askbool (prompt #ask-wbstartl)
  1033.                      (help)
  1034.                      (default 1)
  1035.             )
  1036.             (
  1037.                 (copylib (prompt #copy-wbstartl)
  1038.                          (help)
  1039.                          (source "Libs/wbstart.library")
  1040.                          (dest   "LIBS:")
  1041.                          (confirm)
  1042.                 )
  1043.                 (copylib (prompt #copy-wbstartl)
  1044.                          (help)
  1045.                          (source "Libs/dospath.library")
  1046.                          (dest   "LIBS:")
  1047.                          (confirm)
  1048.                 )
  1049.             )
  1050.         )
  1051.     )
  1052.     (if (= wbstarth_ver 0)
  1053.         (if (askbool (prompt #ask-wbstarth)
  1054.                      (help)
  1055.                      (default 1)
  1056.             )
  1057.             (copylib (prompt #copy-wbstarth)
  1058.                      (help)
  1059.                      (source "L/WBStart-Handler")
  1060.                      (dest   "L:")
  1061.                      (confirm)
  1062.             )
  1063.         )
  1064.     )
  1065. )
  1066.  
  1067. ; @e
  1068.  
  1069. ; @s Installation of the catalogs
  1070.  
  1071. (if (>= locale_ver 38)
  1072.     (
  1073.         (set #catalogs (askoptions (prompt #ask-catalogs)
  1074.                                    (help)
  1075.                                    (choices #lang-german #lang-french #lang-italian)
  1076.                                    (default #catalog-choice-default)
  1077.                        )
  1078.         )
  1079.  
  1080.         (if (> #catalogs 0)
  1081.             (
  1082.                 (set n 0)
  1083.  
  1084.                 (while (set #language (select n "deutsch" "français" "italiano" ""))
  1085.  
  1086.                     (if (IN #catalogs n)
  1087.                         (
  1088.                             (set #dstpath (tackon (tackon "LOCALE:Catalogs" #language) "ScreenTab"))
  1089.  
  1090.                             (if (NOT (exists #dstpath))
  1091.                                 (makedir #dstpath
  1092.                                          (prompt)
  1093.                                          (help @makedir-help)
  1094.                                 )
  1095.                             )
  1096.  
  1097.                             (set #srcpath (cat "catalogs/"
  1098.                                                #language
  1099.                                           )
  1100.                             )
  1101.  
  1102.                             (copyfiles (prompt #copy-catalogs)
  1103.                                        (help)
  1104.                                        (source #srcpath)
  1105.                                        (dest   #dstpath)
  1106.                                        (pattern "#?.catalog")
  1107.                             )
  1108.  
  1109.                             (if #plugin-choice
  1110.                                 (
  1111.                                     (set #dstpath-plugins (tackon #dstpath "PlugIns"))
  1112.  
  1113.                                     (if (NOT (exists #dstpath-plugins))
  1114.                                         (makedir #dstpath-plugins
  1115.                                                  (prompt)
  1116.                                                  (help @makedir-help)
  1117.                                         )
  1118.                                     )
  1119.  
  1120.                                     (set #srcpath-plugins (tackon #srcpath "PlugIns"))
  1121.  
  1122.                                     (copyfiles (prompt #copy-catalogs)
  1123.                                                (help)
  1124.                                                (source #srcpath-plugins)
  1125.                                                (dest   #dstpath-plugins)
  1126.                                                (pattern "#?.catalog")
  1127.                                     )
  1128.                                 )
  1129.                             )
  1130.                         )
  1131.                     )
  1132.  
  1133.                     (set n (+ n 1))
  1134.                 )
  1135.             )
  1136.         )
  1137.     )
  1138. )
  1139.  
  1140. ; @e
  1141.